const http = require('../../utils/http');
const app = getApp();
function getSearchMusic(keyword, pageindex, callbackcount,openid, callback) {


    // /mini/getProductList/1/10
    const body = {
        state: keyword,
        openid:openid,
    };
    console.log(body);
    // console.log(pageindex)
    // console.log(callbackcount)
    // console.log(keyword)
    http._objPost("/mini/getHaveProduct/" + pageindex + '/' + callbackcount, body).then(res => {
        if (res.code == 200) {
            console.log(res.result);
            callback(res.result);
        }

    }).catch(e => {
        console.log(e)
    });

}

module.exports = {
    getSearchMusic: getSearchMusic
}